from person import Person
from work import Work


class Student(Person):
    def __init__(self, id, name, cClass):
        super().__init__(id, name, cClass)
        self.say_hello()

    def todo(self, work):
        print(self.name + "：收到作业" + work.workName + "，正在" + work.workContent + "。谢谢你，老师。")

    def say_hello(self):
        print("我是来自" + self.cClass + "班的" + self.name + "同学，我的学号是"+str(self.id))